import { createApp } from 'vue'
import './style.css'
import './assets/base.scss'
import App from './App.vue'
import router from "./router";
const app = createApp(App)
//Vant
import Vant from 'vant';
import '../node_modules/vant/lib/index.css';
//全局挂载
import API from './api'
//适配
import 'amfe-flexible'
// 导入公共方法
import tool from './utils'
// 引用
import {createPinia } from 'pinia'
//持久化
import piniaPluginPersist from 'pinia-plugin-persistedstate'
// 创建Pinia实例
const Pinia = createPinia()
Pinia.use(piniaPluginPersist)
app.config.globalProperties.$tool = tool;// 封装的工具类
app.config.globalProperties.$API = API;
app.use(router).use(Pinia).use(Vant).mount('#app')
